#ifndef BOOKDATABUILDER_H
#define BOOKDATABUILDER_H

#include <QObject>
#include <QFileInfo>
#include <QCoreApplication>
#include <QAbstractItemModel>
#include "bookdata.h"

class BookDataBuilder : public QObject
{
public:
    BookDataBuilder(const QString &fileName);
    BookData* getBookData(){ return _bookData;}
    QAbstractItemModel* getItemModel(){ return _itemModel;}
    virtual void parse(){}
protected:
    virtual void addCover(BookData* bookData){}
    QString _fileName;
    BookData* _bookData;
    QAbstractItemModel* _itemModel;
};

#endif // BOOKDATABUILDER_H
